import { createRouter, createWebHashHistory } from 'vue-router'

import LoginView from "@/views/LoginView.vue";
import IndexView from "@/views/IndexView.vue";
import StudentView from "@/views/StudentView.vue";
import CourseView from '@/views/CourseView.vue';
const routes = [
  {
    path: '/',
    name: 'login',
    component: LoginView
  },
  {
    path: '/index',
    name: 'index',
    component: IndexView,
    children:[
      {
        path: '/student',
        name: 'student',
        component: StudentView
      }
    ]
  },
  {
    path: '/course',
    name: 'CourseView',
    component: CourseView
  },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
